/*
 * IMGSplitter.hpp
 *
 *  Created on: 07.10.2013
 *      Author: dima
 */

#ifndef IMGSPLITTER_HPP_
#define IMGSPLITTER_HPP_


#include "../Model/TankModel.hpp"

#include "IMGLoader.hpp"


namespace Tanks
{

namespace Resources
{

  enum AnimationType
  {
    TankAnimationLeft,
    TankAnimationUp,
    TankAnimationRight,
    TankAnimationDown,
    ExplosionAnimation,
    ExplosionTankAnimation,
    AnimationTypeEnd
  };

  class IMGSplitter
  {
  public:

    static IMGSplitter & getInstance();

    void Split();

    std::vector<SDL_Rect> Animations[AnimationTypeEnd];

  private:

    IMGSplitter(){}

    SDL_Rect CreateRect(int argX, int argY, int argW, int argH);
  };


}

}


#endif /* IMGSPLITTER_HPP_ */
